package com.github.codemperor.auth.api;

import com.github.codemperor.api.security.ApiScan;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.core.Ordered;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class AuthStartingInit implements ApplicationRunner, Ordered {

    @Override
    public void run(ApplicationArguments args) {
        new ApiScan().frontend().frontendAuthorized().crm().open().inner();
    }

    @Override
    public int getOrder() {
        return 0;
    }
}

